import request from '@/utils/request'

// 获取模型视频列表
export const getVideos = () => {
  return request({
    url: `/video`,
    method: 'get'
  })
}

// 获取模型视频
export const getVideo = (id) => {
  return request({
    url: `/video/${id}`,
    method: 'get'
  })
}

// 创建模型视频
export const createVideo = (data) => {
  return request({
    url: `/video`,
    method: 'post',
    data
  })
}

// 修改模型视频
export const updateVideo = (id, data) => {
  return request({
    url: `/video/${id}`,
    method: 'put',
    data
  })
}

// 删除模型视频
export const removeVideo = (id) => {
  return request({
    url: `/video/${id}`,
    method: 'delete',
  })
}

